﻿//
// GNS_NewPromoter.h
// MobileManageSys
//FuncTion  新增推广员/代理商
// Created by mr.l on 16/1/15.
//
//

#ifndef __MobileManageSys__GNS_NewPromoter__
#define __MobileManageSys__GNS_NewPromoter__

#include "cocos2d.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "GNS_CursorTextField.h"
#include "GNS_Common.h"
#include "GNS_Handler.h"

USING_NS_CC;
using namespace cocostudio::timeline;
using namespace ui;
US_NS_CUSTOM_UI;

class GNS_NewPromoter : public Layer
{
public:
    GNS_NewPromoter();
    ~GNS_NewPromoter();
    static GNS_NewPromoter* createLayer();
    virtual bool init();
    CREATE_FUNC(GNS_NewPromoter);
    void BtnCallBack(Ref *pSender , ui::Widget::TouchEventType type);
    void SetNodeName(std::string CsbName);
    void ReceiveInformation();
    void CheckInput();
    PopWndLayer * OnUIAction(std::string Text,bool isUTF);
private:
    Node * pGNS_NewPromoter;
    //GNS_CursorTextField * PromoID;
   // GNS_CursorTextField * PromoRem;
   // GNS_CursorTextField * PromoInto;
   // GNS_CursorTextField * PromoCode;
	TextField * promoterZhangHao;
	TextField * promoterRemark;
	TextField * promoterFencheng;
	TextField * promoterCode;
    PopWndLayer * pPopWnd;
    std::string pCluesID;
    std::string pCluesRem;
    std::string pCluesInto;
    std::string pCluesCode;
    /**
     *  UI 界面显示
     */
    Text * pTitle;
    Text * IDText;
    Text * RemText;
    int UserInfo;

	CustomEditBox * _promoterZhangHao;
	CustomEditBox * _promoterRemark;
	CustomEditBox * _promoterFencheng;
	CustomEditBox * _promoterCode;
};

#endif /* defined(__MobileManageSys__GNS_NewPromoter__) */